package com.alan.singleton;

/**
 * Created by Alan on 2018/8/20.
 *
 *  饿汉式
 */
public class HungrySingleton {

    private static HungrySingleton instance = new HungrySingleton();

    private HungrySingleton(){}

    public static HungrySingleton getInstance(){
        return instance;
    }
}
